const isLogin = () => !!localStorage.getItem("token");
const getToken = () => localStorage.getItem("token");
// 请求用户相关缓存
const removeUser = () => {
  localStorage.removeItem("token");
  localStorage.removeItem("userInfo");
  localStorage.removeItem("role");
  localStorage.removeItem("btns");
};

export { isLogin, getToken, removeUser };
